import { request } from '@/utils'


// 登录，以获取token
export const loginAPI = (loginForm) => {
  return request({
    url: '/authorizations',
    method: 'POST',
    data: loginForm,
  })
}

// 获取登录用户的信息
export const getProfileAPI = () => {
  return request({
    url: '/user/profile',
    method: 'GET',
  })
}